﻿namespace zijian666.Updater;


public interface IParseValue
{
    Task<string> Parse(string value);
}


[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public class TryReadStringAttribute : Attribute, IParseValue
{
    public Task<string> Parse(string value)
        => Helper.ReadString(value).AsTask();
}
